{include file="public:header" /}
<!--广告位列表-->
<div class="pad_lr_10">
    <div class="J_tablelist table_list" data-acturi="{:url('PosterSpace/ajaxEdit')}">
      <table width="100%" cellspacing="0">
        <thead>
			<tr>
				<th width="25"><input type="checkbox" class="J_checkall"></th>
				<th width="10"><span tdtype="order_by" fieldname="id">ID</span></th>
				<th width="220"><span tdtype="order_by" fieldname="name">广告位名称</span></th>
				<th width="80"><span tdtype="order_by" fieldname="type">广告位类型</span></th>
				<th width="80">广告位尺寸</th>
				<th width="50">广告数</th>
				<th width="300">描述</th>
                <th width="40"><span data-tdtype="order_by" data-field="status">状态</span></th>
                <th>操作</th>
			</tr>
        </thead>
		<tbody>
			{volist name="list" id="val"}
			<tr>
				<td align="center"><input type="checkbox" name="checkall" class="J_checkitem" value="{$val.id}"></td>
				<td align="center">{$val.id}</td>
				<td align="center"><span data-tdtype="edit" data-field="name" data-id="{$val.id}" class="tdedit">{$val.name}</span></td>
                <td align="center">{$val['type']}</td>
				<td align="center"><span data-tdtype="edit" data-field="width" data-id="{$val.id}" class="tdedit">{$val.width}</span>*<span data-tdtype="edit" data-field="height" data-id="{$val.id}" class="tdedit">{$val.height}</span></td>
				<td align="center">{$val.items}</td>
				<td align="center"><span data-tdtype="edit" data-field="description" data-id="{$val.id}" class="tdedit">{$val.description}</span></td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/toggle_{if condition="$val.status eq 0"}disabled{else/}enabled{/if}.gif" /></td>
                <td align="center">
                    {:rights($options,$val['id'],$val['name'],$menuid)}
                </td>
			</tr>
			{/volist}
        </tbody>
		</table>
        <div class="btn_wrap_fixed">
			<label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
            <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('PosterSpace/delete')}" data-name="id" data-msg="确定删除所选记录么？" value="删除" />
			<div id="pages">{$pages}</div>
		</div>
	</div>
</div>
{include file="public:footer" /}
</body>
</html>